﻿@model FinancasMD.Models.Conta

@{
    ViewBag.Title = "Editar";
}

<h2>Editar</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Conta</legend>

        @Html.HiddenFor(model => model.Id)

        <div class="editor-label">@Html.LabelFor(model => model.Descricao)</div>
        <div class="editor-field">@Html.TextBoxFor(model => model.Descricao)@Html.ValidationMessageFor(model => model.Descricao)</div>

        <div class="editor-label">@Html.LabelFor(model => model.Valor)</div>
        <div class="editor-field">@Html.TextBoxFor(model => model.Valor)@Html.ValidationMessageFor(model => model.Valor)</div>

        <div class="editor-label">@Html.LabelFor(model => model.DtVenvimento)</div>
        <div class="editor-field">@Html.TextBoxFor(model => model.DtVenvimento)@Html.ValidationMessageFor(model => model.DtVenvimento)</div>

        <div class="editor-label">@Html.LabelFor(model => model.QtdParcelas)</div>
        <div class="editor-field">@Html.TextBoxFor(model => model.QtdParcelas)@Html.ValidationMessageFor(model => model.QtdParcelas)</div>

        <div class="editor-label">@Html.LabelFor(model => model.TipoConta)</div>
        <div class="editor-field">@Html.TextBoxFor(model => model.TipoConta)@Html.ValidationMessageFor(model => model.TipoConta)</div>

        <div class="editor-label">@Html.LabelFor(model => model.TipoParcela)</div>
        <div class="editor-field">@Html.TextBoxFor(model => model.TipoParcela)@Html.ValidationMessageFor(model => model.TipoParcela)</div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
